import req from "@/router/axios";

// eslint-disable-next-line require-jsdoc
export function get (params) {
  return req.get("/admin/sysComponents/page", { params });
}

// eslint-disable-next-line require-jsdoc
export function alt (params) {
  return req.put("/admin/sysComponents", params);
}

// eslint-disable-next-line require-jsdoc
export function del (id) {
  return req["delete"]("/admin/sysComponents/" + id);
}

// eslint-disable-next-line require-jsdoc
export function add (params) {
  return req.post("/admin/sysComponents", params);
}